
-- =============================================
-- Author:		Christopher Navarro
-- Create date: 6/12/12
-- Description:	Lista todo los aportes de un blog.
-- =============================================
CREATE PROCEDURE ListarEntradaBlog 
	-- Add the parameters for the stored procedure here
	@idBlog int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	Select 	
		E.id_entrada,
		E.titulo,
		E.mensaje
	from tentrada E
		Inner Join tblog B on B.id_blog = E.id_blog
	
	Where E.id_blog = @idBlog
END
GO
